package com.gws.ievent.service.job;

import com.gws.ievent.scheduler.Scheduler;
import com.gws.ievent.scheduler.IJob;

import java.util.concurrent.ThreadPoolExecutor;

/**
 * @author song
 * @date 2022/10/21 22:10
 */
public class ThreadPoolMonitorJob implements IJob {

    private final ThreadPoolExecutor executor;

    public ThreadPoolMonitorJob(ThreadPoolExecutor executor) {
        this.executor = executor;
    }

    /**
     * 执行方法
     *
     * @return
     */
    @Override
    public void run(Scheduler event) {
        System.out.println(this.executor);
    }

}
